* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pixelify Sans', sans-serif;
  }
  
  body {
    font-family: 'Pixelify Sans', sans-serif;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
  }
  
  /* Selection Screen */
  #selectionScreen {
    text-align: center;
  }
  
  #selectionScreen h1 {
    font-size: 40px;
    margin-bottom: 20px;
  }
  
  #selectionScreen button {
    font-size: 20px;
    margin: 10px;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: 2px solid white;
    cursor: pointer;
  }
  
  #selectionScreen button:hover {
    background-color: white;
    color: black;
  }
  
  /* Game Container */
  #gameContainer {
    position: relative;
    width: 800px;
    height: 600px;
    border: 5px solid white;
  }
  
  canvas {
    background-color: black;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
  }
  
  .hidden {
    display: none;
  }
  
  /* Game Over Screen */
  #gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
  }
  
  #gameOverScreen h1 {
    font-size: 40px;
    margin-bottom: 20px;
  }
  
  #gameOverScreen button,
  #gameOverScreen a {
    font-size: 20px;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
  }
  
  #gameOverScreen button:hover,
  #gameOverScreen a:hover {
    background-color: white;
    color: black;
  }
  
  /* Scoreboard */
  #scoreboard {
    margin-top: 20px;
    font-size: 24px;
  }
  
  /* Directional Buttons */
  .controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }
  
  .controls button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  .controls button:hover {
    background-color: white;
    color: black;
  }
  
  .controls a {
    padding: 10px 20px;
    font-size: 18px;
    background-color: black;
    color: white;
    border: none;
    text-decoration: none;
    cursor: pointer;
  }
  
  .controls a:hover {
    background-color: white;
    color: black;
  }
  
  /* Pop-ups */
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
  }
  
  .popup button {
    margin-top: 20px;
    font-size: 20px;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  .popup button:hover {
    background-color: white;
    color: black;
  }

  .im img{
    width: 50%;
  }
  
  
  @media screen and (max-width: 1023px) {
    #gameContainer {
      width: 90%;   
      height: auto;  
    }
  
    #gameOverScreen h1 {
      font-size: 30px;  
    }
  
    #gameOverScreen button,
    #gameOverScreen a {
      font-size: 18px;
      padding: 8px 16px;  
    }
  
    .controls button {
      padding: 8px 16px;
      font-size: 16px;
    }
  
    #scoreboard {
      font-size: 20px;
    }
  }
  
   
  @media screen and (max-width: 767px) {
    #gameContainer {
      width: 100%;   
      height: auto;
    }
  
    #gameOverScreen h1 {
      font-size: 25px;  
    }
  
    #gameOverScreen button,
    #gameOverScreen a {
      font-size: 16px;
      padding: 6px 12px;
    }
  
    .controls button {
      padding: 6px 12px;
      font-size: 14px;
    }
  
    #scoreboard {
      font-size: 18px;
    }
  }
  